package com.iotechn.unimall.data.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: rize
 * Date: 2019/11/27
 * Time: 10:54
 */
@Data
@TableName("unimall_distribution")
public class DistributionDO extends SuperDO {

    /**
     * 分销状态
     */
    private Integer status;

    /**
     * 用户ID 用于关联
     */
    @TableField("user_id")
    private Long userId;

    private Integer level;

    @TableField("parent_id")
    private Long parentId;

    private String realname;

    @TableField("id_card")
    private String idCard;

    private String phone;
    /** 真实余额 */
    @TableField("real_balance")
    private Integer realBalance;
    /** 上次的真实余额 */
    @TableField("total_real_balance")
    private Integer totalRealBalance;
    /** 上次的显示余额 */
    @TableField("total_balance")
    private Integer totalBalance;



    private Integer balance;

    @TableField("freeze_balance")
    private Integer freezeBalance;

    @TableField("total_sum")
    private Integer totalSum;

    @TableField("allow_child")
    private Integer allowChild;
    @TableField("qr_url")
    private String qrUrl;
    @TableField("subordinate_qr_url")
    private String subordinateQrUrl;
    @TableField("order_count")
    private Integer orderCount;
    @TableField("user_count")
    private Integer userCount;

    /**
     * 充值总额
     */
    @TableField("total_recharge")
    private Integer totalRecharge;
    /**
     * 消费总额
     */
    @TableField("total_consumption")
    private Integer totalConsumption;

    /**
     * 卡号
     */
    @TableField("card_no")
    private String cardNo;
}
